package cn.edu.seu.ssny.dao;

import cn.edu.seu.ssny.dao.support.IBaseDao;
import cn.edu.seu.ssny.entity.DeviceCategoryCommon;
import cn.edu.seu.ssny.entity.Project;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;


@Repository
public interface IDeviceCategoryCommonDao extends IBaseDao<DeviceCategoryCommon, Integer> {
    List<DeviceCategoryCommon> findByProjectOrderByName(Project project);

    Optional<DeviceCategoryCommon> findByProjectAndName(Project project, String name);
}
